import axios from "@/server/index";

export function searchdata(params) {
	return axios({
		url: '/article',
		method: 'POST',
		data:params || {}
	})
}
export function createarticle(params) {
	return axios({
		url: '/article/create',
		method: 'POST',
		data:params || ''
	})
}
export function sarticlebytitle(params) {
	return axios({
		url: '/article/searchbytitle',
		method: 'POST',
		data:params || ''
	})
}
export function sarticlebytype(params) {
	return axios({
		url: '/article/searchbytype',
		method: 'POST',
		data:params || ''
	})
}
export function sarticlebyid(params) {
	return axios({
		url: '/article/searchbyid',
		method: 'POST',
		data:params || ''
	})
}
export function deletearticle(params) {
	return axios({
		url: '/article/delete',
		method: 'POST',
		data: params || ''
	})
}
export function updatearticle(params) {
	return axios({
		url: '/article/update',
		method: 'POST',
		data: params || ''
	})
}